<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./Tools.js"></script>
    <script>
        const content = prompt('请输入昵称')
        console.log();

        if (content.length >= 6 && content.length <= 8) {
            console.log(Tools.check(content));
            if (Tools.check(content)) {
                alert("您的昵称符合要求")
            } else {
                alert("您的昵称不符合要求")
            }
        } else {
            alert("您的昵称不符合要求")
        }
    </script>
</body>

</html>